﻿<%@ Control Language="C#"  %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<div class="ForumListDisplay">
<table width="100%">
	<tr class="ForumTitleColumnHeader"><td colspan="2" width="55%"><asp:Label runat="server" ID="_tpc">Topics</asp:Label></td>
	<td class="ForumColumnHeader" width="10%"><asp:Label runat="server" ID="_tpcLbl">Replies</asp:Label></td>
	<td class="ForumColumnHeader" width="10%"><asp:Label runat="server" ID="_postsLbl">Views</asp:Label></td>
	<td width="25%" class="ForumColumnHeader"><asp:Label runat="server" ID="_lstpLbl">Last Post</asp:Label></td>
	</tr>
	<%HtmlBlock method = "processList"; %>
		<%Conditional on = "IsLast==False"; %>
		<tr class="ForumThreadArea">
		<%EndConditional; %>
		<%Conditional on = "IsLast==True"; %>
		<tr class="ForumThreadArea LastForumRow">
		<%EndConditional; %>
			<td><asp:Image runat="server" ID="primaryPicture_name"  ImageUrl="/$mediaCacheName$/$imageRes$/$primaryPicture.name$" /></td>
			<td>
				<div class="Title"><asp:HyperLink id="title" runat="server"  NavigateUrl="$navLink$"/></div>
				<div class="Summary"><asp:Label runat="server" ID="summary" /></div>
				<div class="CreatedBy"><asp:Label runat="server" ID="counts_author_id" 
				Text="written by $counts.author.userName$ on $counts.dateCreated$" /></div>
			</td>
			<td>
				<div class="TopicCount"><asp:Label runat="server" ID="counts_totalL1" /></div>
			</td>
			<td>
				<div class="PostCount"><asp:Label runat="server" ID="counts_totalViews" /></div>
			</td>
			<td>
				<asp:Label runat="server" ID="counts_lastChildUpdatedBy" 
				Text="by $counts.lastChildUpdatedBy.userName$<br /%gt;on $counts.lastChildUpdatedDisplayDate$" />
			</td>
		</tr>
    <%EndHtmlBlock; %>
</table>
</div>